exclude columns in df

124

exclude columns in df -

df2 = df[df.columns.difference(['B', 'D'])]

Comments

Submit
0 Comments